//
//  PrefixConfig.swift
//  XHSwift_Test_Demo
//
//  Created by MrYeL on 2018/9/19.
//  Copyright © 2018年 MrYeL. All rights reserved.
//

import UIKit

let kDeviceWidth = UIScreen.main.bounds.size.width
let kDeviceHeight = UIScreen.main.bounds.size.height
let kNavigationBarHeight:CGFloat = 44

let kVCBgColor = UIColor.clear.colorWithHex(rgb: 0xf7f7f8, alpha: 1)
let colorGrayLine = UIColor.clear.colorWithHex(rgb: 0xe3e3e3, alpha: 1)
let colorGray = UIColor.clear.colorWithHex(rgb: 0xa1a5aa, alpha: 1)
let colorBlue = UIColor.clear.colorWithHex(rgb: 0x52adff, alpha: 1)
let colorBlack = UIColor.clear.colorWithHex(rgb: 0x252c3d, alpha: 1)

let iPhoneX :Bool = is_iPhoneX()
func is_iPhoneX() -> Bool {

    if UIApplication.shared.statusBarFrame.size.height > 20.0 {
        return true
    }
    return false
}

func scaleHeight_iPhone6(height:CGFloat) -> CGFloat {
    
    return height/375.0 * height
}


